
<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:a4j="http://richfaces.org/a4j"
      xmlns:rich="http://richfaces.org/rich" >
    <h:head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
        <title>TODO supply a title</title>
        <script language="javascript">
            function showProj(){
                window.open("./pubinfo/projList.jsf", "项目列表", "height=1024,width=800,toolbar=no,menubar=no,scrollbars=no");
            }
            function updateProjSelect(code,name){
                document.getElementById('emp:projCode').value = code;
                document.getElementById('emp:projName').value = name;
            }

            function showDept(){
                window.open("./pubinfo/departmentList.jsf", "部门列表", "height=1024,width=800,toolbar=no,menubar=no,scrollbars=no");
            }
            function updateDept(code,name){
                document.getElementById('emp:deptcode').value = code;
                document.getElementById('emp:deptname').value = name;
            }
            function showCostItem(){
                window.open("./pubinfo/costItemList.jsf", "经济分类", "height=1024,width=800,toolbar=no,menubar=no,scrollbars=no");
            }
            function updateCostItemName(code,name){
                document.getElementById('emp:costcode').value = code;
                document.getElementById('emp:costname').value = name;
            }
        </script>
    </h:head>
    <h:body>
        <h:form id="emp">
            <rich:panel header="待审核单据" styleClass="content-hight">
                <a4j:commandButton value="刷新待审批单据" action="#{payBillViewBean.queryCheckViewList}" render="@form"/>
                <rich:collapsiblePanel  switchType="client" header="借款单审核" expanded="true" >
                        <div style="width:100%;overflow:auto">
                            <rich:dataTable id="editTableBill" value="#{loanbill.loanCheckViewModel}" var="explist" rows="5"
                                    rowClasses="list-row-odd,list-row-even" style=" width: 1500px;"
                                    headerClass="table-header" >
                        <rich:column sortBy="#{explist.number}">
                            <f:facet name="header">
                                <h:panelGroup>
                                    <h:outputText value="单据编号"/>
                                </h:panelGroup>
                            </f:facet>
                            <h:commandLink action="#{loanbill.showFromCheckView(explist)}">
                                <h:outputText value="#{explist.number}"/>
                            </h:commandLink>
                        </rich:column>
                        <rich:column sortBy="#{explist.numDate}">
                            <f:facet name="header">
                                <h:panelGroup>
                                    <h:outputText value="单据日期"/>
                                </h:panelGroup>
                            </f:facet>
                            <h:outputText value="#{explist.numDate}">
                                <f:convertDateTime pattern="yyyy年MM月dd日" timeZone="GMT+8" locale="cn" />
                            </h:outputText>
                        </rich:column>
                        <rich:column sortBy="#{explist.numberStatus}">
                            <f:facet name="header">
                                <h:panelGroup>
                                    <h:outputText value="单据状态"/>
                                </h:panelGroup>
                            </f:facet>
                            <h:outputText value="等待审核"  rendered="#{explist.numberStatus == '0'}" style="color:green"/>
                            <h:outputText value="审核通过"  rendered="#{explist.numberStatus == '2'}" style="color:blue"/>
                            <h:outputText value="退回修改"  rendered="#{explist.numberStatus == '3'}" style="color:red"/>
                            <h:outputText value="确认支付"  rendered="#{explist.numberStatus == '4'}" style="color:blue"/>
                            <h:outputText value="支付完毕"  rendered="#{explist.numberStatus == '6'}" style="color:blue"/>
                        </rich:column>
                         <rich:column sortBy="#{explist.dept.name}">
                            <f:facet name="header">
                                <h:panelGroup>
                                    <h:outputText value="部门"/>
                                </h:panelGroup>
                            </f:facet>
                            <h:outputText value="#{explist.dept.name}"/>
                        </rich:column>
                         <rich:column sortBy="#{explist.user.cpsn_name}">
                            <f:facet name="header">
                                <h:panelGroup>
                                    <h:outputText value="借款人"/>
                                </h:panelGroup>
                            </f:facet>
                            <h:outputText value="#{explist.user.cpsn_name}"/>
                        </rich:column>

                        <rich:column sortBy="#{explist.project.finName}">
                            <f:facet name="header">
                                <h:panelGroup>
                                    <h:outputText value="预算项目"/>
                                </h:panelGroup>
                            </f:facet>
                            <h:outputText value="#{explist.project.finName}"/>
                        </rich:column>

                        <rich:column sortBy="#{explist.affair}">
                            <f:facet name="header">
                                <h:panelGroup>
                                    <h:outputText value="借款事由"/>
                                </h:panelGroup>
                            </f:facet>
                            <h:outputText value="#{explist.affair}"/>
                        </rich:column>

                        <rich:column sortBy="#{explist.total}">
                            <f:facet name="header">
                                <h:panelGroup>
                                    <h:outputText value="借款金额"/>
                                </h:panelGroup>
                            </f:facet>
                            <h:outputText value="#{explist.total}">
                                <f:convertNumber type="number" pattern="#,##0.00"/>
                            </h:outputText>
                        </rich:column>

                        <rich:column sortBy="#{explist.costClass}">
                            <f:facet name="header">
                                <h:panelGroup>
                                    <h:outputText value="支出类别"/>
                                </h:panelGroup>
                            </f:facet>
                            <h:outputText value="#{explist.costClass}"/>
                        </rich:column>

                        <rich:column sortBy="#{explist.budgetSource}">
                            <f:facet name="header">
                                <h:panelGroup>
                                    <h:outputText value="预算来源"/>
                                </h:panelGroup>
                            </f:facet>
                            <h:outputText value="#{explist.budgetSource}"/>
                        </rich:column>

                        <rich:column sortBy="#{explist.costitem.name}">
                            <f:facet name="header">
                                <h:panelGroup>
                                    <h:outputText value="经济分类"/>
                                </h:panelGroup>
                            </f:facet>
                            <h:outputText value="#{explist.costitem.name}"/>
                        </rich:column>

                        <rich:column sortBy="#{explist.costTypes.name}">
                            <f:facet name="header">
                                <h:panelGroup>
                                    <h:outputText value="支出渠道"/>
                                </h:panelGroup>
                            </f:facet>
                            <h:outputText value="#{explist.costTypes.name}"/>
                        </rich:column>

                        <rich:column sortBy="#{explist.paycode}">
                            <f:facet name="header">
                                <h:panelGroup>
                                    <h:outputText value="支付令"/>
                                </h:panelGroup>
                            </f:facet>
                            <h:outputText value="#{explist.paycode}" style="width:350px" />
                        </rich:column>


                        <rich:column sortBy="#{explist.checkaccount}">
                            <f:facet name="header">
                                <h:panelGroup>
                                    <h:outputText value="核定金额"/>
                                </h:panelGroup>
                            </f:facet>
                            <h:outputText value="#{explist.checkaccount}">
                                <f:convertNumber type="number" pattern="#,##0.00"/>
                            </h:outputText>
                        </rich:column>

                        <rich:column sortBy="#{explist.auditDate}">
                            <f:facet name="header">
                                <h:panelGroup>
                                    <h:outputText value="审核日期"/>
                                </h:panelGroup>
                            </f:facet>
                            <h:outputText value="#{explist.auditDate}">
                                <f:convertDateTime pattern="yyyy年MM月dd日" timeZone="GMT+8" locale="cn" />
                            </h:outputText>
                        </rich:column>

                        <rich:column sortBy="#{explist.auditor}">
                            <f:facet name="header">
                                <h:panelGroup>
                                    <h:outputText value="审核人"/>
                                </h:panelGroup>
                            </f:facet>
                            <h:outputText value="#{explist.auditor}"/>
                        </rich:column>

                        <rich:column sortBy="#{explist.payaccount}">
                            <f:facet name="header">
                                <h:panelGroup>
                                    <h:outputText value="支付金额"/>
                                </h:panelGroup>
                            </f:facet>
                            <h:outputText value="#{explist.payaccount}">
                                <f:convertNumber type="number" pattern="#,##0.00"/>
                            </h:outputText>
                        </rich:column>

                        <rich:column sortBy="#{explist.payDate}">
                            <f:facet name="header">
                                <h:panelGroup>
                                    <h:outputText value="支付日期"/>
                                </h:panelGroup>
                            </f:facet>
                            <h:outputText value="#{explist.payDate}">
                                <f:convertDateTime pattern="yyyy年MM月dd日" timeZone="GMT+8" locale="cn" />
                            </h:outputText>
                        </rich:column>

                        <rich:column sortBy="#{explist.payer}">
                            <f:facet name="header">
                                <h:panelGroup>
                                    <h:outputText value="出纳"/>
                                </h:panelGroup>
                            </f:facet>
                            <h:outputText value="#{explist.payer}"/>
                        </rich:column>


                        <f:facet name="footer">
                            <rich:dataScroller id="ds"></rich:dataScroller>
                        </f:facet>
                    </rich:dataTable>
                </div>
                 </rich:collapsiblePanel>
                <rich:collapsiblePanel  switchType="client" header="报销凭单审核" expanded="true" >
                <div style="width:100%;overflow:auto">
                    <rich:dataTable id="editTableExpense" value="#{expense.expenseCheckViewModel}" var="explist" rows="5"
                                    rowClasses="list-row-odd,list-row-even" style=" width: 1500px;"
                                    headerClass="table-header"  >
                        <rich:column sortBy="#{explist.number}">
                            <f:facet name="header">
                                <h:panelGroup>
                                    <h:outputText value="单据编号"/>
                                </h:panelGroup>
                            </f:facet>
                            <h:commandLink action="#{expense.showFromCheckView(explist)}" >
                                <h:outputText value="#{explist.number}"/>
                            </h:commandLink>
                        </rich:column>
                        <rich:column sortBy="#{explist.numDate}">
                            <f:facet name="header">
                                <h:panelGroup>
                                    <h:outputText value="单据日期"/>
                                </h:panelGroup>
                            </f:facet>
                            <h:outputText value="#{explist.numDate}">
                                <f:convertDateTime pattern="yyyy年MM月dd日" timeZone="GMT+8" locale="cn" />
                            </h:outputText>
                        </rich:column>
                        <rich:column sortBy="#{explist.numberStatus}">
                            <f:facet name="header">
                                <h:panelGroup>
                                    <h:outputText value="单据状态"/>
                                </h:panelGroup>
                            </f:facet>
                            <h:outputText value="等待审核"  rendered="#{explist.numberStatus == '0'}" style="color:green"/>
                            <h:outputText value="审核通过"  rendered="#{explist.numberStatus == '2'}" style="color:blue"/>
                            <h:outputText value="退回修改"  rendered="#{explist.numberStatus == '3'}" style="color:red"/>
                            <h:outputText value="确认支付"  rendered="#{explist.numberStatus == '4'}" style="color:blue"/>
                            <h:outputText value="支付完毕"  rendered="#{explist.numberStatus == '6'}" style="color:blue"/>
                        </rich:column>
                         <rich:column sortBy="#{explist.dept.name}">
                            <f:facet name="header">
                                <h:panelGroup>
                                    <h:outputText value="部门"/>
                                </h:panelGroup>
                            </f:facet>
                            <h:outputText value="#{explist.dept.name}"/>
                        </rich:column>
                             <rich:column sortBy="#{explist.user.cpsn_name}">
                            <f:facet name="header">
                                <h:panelGroup>
                                    <h:outputText value="经手人员"/>
                                </h:panelGroup>
                            </f:facet>
                            <h:outputText value="#{explist.user.cpsn_name}"/>
                        </rich:column>
                         <rich:column sortBy="#{explist.project.finName}">
                            <f:facet name="header">
                                <h:panelGroup>
                                    <h:outputText value="预算项目"/>
                                </h:panelGroup>
                            </f:facet>
                            <h:outputText value="#{explist.project.finName}"/>
                        </rich:column>
                        <rich:column sortBy="#{explist.affair}">
                            <f:facet name="header">
                                <h:panelGroup>
                                    <h:outputText value="报销内容"/>
                                </h:panelGroup>
                            </f:facet>
                            <h:outputText value="#{explist.affair}"/>
                        </rich:column>

                        <rich:column sortBy="#{explist.total}">
                            <f:facet name="header">
                                <h:panelGroup>
                                    <h:outputText value="报销金额"/>
                                </h:panelGroup>
                            </f:facet>
                            <h:outputText value="#{explist.total}">
                                <f:convertNumber type="number" pattern="#,##0.00"/>
                            </h:outputText>
                        </rich:column>

                        <rich:column sortBy="#{explist.costClass}">
                            <f:facet name="header">
                                <h:panelGroup>
                                    <h:outputText value="支出类别"/>
                                </h:panelGroup>
                            </f:facet>
                            <h:outputText value="#{explist.costClass}"/>
                        </rich:column>

                        <rich:column sortBy="#{explist.budgetSource}">
                            <f:facet name="header">
                                <h:panelGroup>
                                    <h:outputText value="预算来源"/>
                                </h:panelGroup>
                            </f:facet>
                            <h:outputText value="#{explist.budgetSource}"/>
                        </rich:column>

                        <rich:column sortBy="#{explist.costitem.name}">
                            <f:facet name="header">
                                <h:panelGroup>
                                    <h:outputText value="经济分类:"/>
                                </h:panelGroup>
                            </f:facet>
                            <h:outputText value="#{explist.costitem.name}"/>
                        </rich:column>

                        <rich:column sortBy="#{explist.costTypes.name}">
                            <f:facet name="header">
                                <h:panelGroup>
                                    <h:outputText value="支出渠道:"/>
                                </h:panelGroup>
                            </f:facet>
                            <h:outputText value="#{explist.costTypes.name}"/>
                        </rich:column>

                        <rich:column sortBy="#{explist.paycode}">
                            <f:facet name="header">
                                <h:panelGroup>
                                    <h:outputText value="支付令"/>
                                </h:panelGroup>
                            </f:facet>
                            <h:outputText value="#{explist.paycode}" style="width:350px" />
                        </rich:column>

                        <rich:column sortBy="#{explist.checkaccount}">
                            <f:facet name="header">
                                <h:panelGroup>
                                    <h:outputText value="核定金额"/>
                                </h:panelGroup>
                            </f:facet>
                            <h:outputText value="#{explist.checkaccount}">
                                <f:convertNumber type="number" pattern="#,##0.00"/>
                            </h:outputText>
                        </rich:column>

                        <rich:column sortBy="#{explist.repayment}">
                            <f:facet name="header">
                                <h:panelGroup>
                                    <h:outputText value="还款金额"/>
                                </h:panelGroup>
                            </f:facet>
                            <h:outputText value="#{explist.repayment}">
                                <f:convertNumber type="number" pattern="#,##0.00"/>
                            </h:outputText>
                        </rich:column>

                        <rich:column sortBy="#{explist.remain}">
                            <f:facet name="header">
                                <h:panelGroup>
                                    <h:outputText value="待支付金额"/>
                                </h:panelGroup>
                            </f:facet>
                            <h:outputText value="#{explist.remain}">
                                <f:convertNumber type="number" pattern="#,##0.00"/>
                            </h:outputText>
                        </rich:column>

                        <rich:column sortBy="#{explist.auditDate}">
                            <f:facet name="header">
                                <h:panelGroup>
                                    <h:outputText value="审核日期"/>
                                </h:panelGroup>
                            </f:facet>
                            <h:outputText value="#{explist.auditDate}">
                                <f:convertDateTime pattern="yyyy年MM月dd日" timeZone="GMT+8" locale="cn" />
                            </h:outputText>
                        </rich:column>

                        <rich:column sortBy="#{explist.auditor}">
                            <f:facet name="header">
                                <h:panelGroup>
                                    <h:outputText value="审核人"/>
                                </h:panelGroup>
                            </f:facet>
                            <h:outputText value="#{explist.auditor}"/>
                        </rich:column>

                        <rich:column sortBy="#{explist.payaccount}">
                            <f:facet name="header">
                                <h:panelGroup>
                                    <h:outputText value="支付金额"/>
                                </h:panelGroup>
                            </f:facet>
                            <h:outputText value="#{explist.payaccount}">
                                <f:convertNumber type="number" pattern="#,##0.00"/>
                            </h:outputText>
                        </rich:column>

                        <rich:column sortBy="#{explist.payDate}">
                            <f:facet name="header">
                                <h:panelGroup>
                                    <h:outputText value="支付日期"/>
                                </h:panelGroup>
                            </f:facet>
                            <h:outputText value="#{explist.payDate}">
                                <f:convertDateTime pattern="yyyy年MM月dd日" timeZone="GMT+8" locale="cn" />
                            </h:outputText>
                        </rich:column>

                        <rich:column sortBy="#{explist.payer}">
                            <f:facet name="header">
                                <h:panelGroup>
                                    <h:outputText value="出纳"/>
                                </h:panelGroup>
                            </f:facet>
                            <h:outputText value="#{explist.payer}"/>
                        </rich:column>

                        <f:facet name="footer">
                            <rich:dataScroller id="ds"></rich:dataScroller>
                        </f:facet>
                    </rich:dataTable>
                </div>
                </rich:collapsiblePanel>
      <rich:collapsiblePanel  switchType="client" header="差旅费审核" expanded="false" >
    <div style="width:100%; overflow: auto">
        <rich:dataTable value="#{tripaccount.tripCheckViewModel}" var="tralist" rows="5"
                                    id="tplist" style="width:1500px;"
                                    rowClasses="list-row-odd,list-row-even" headerClass="table-header">
                        <rich:column sortBy="#{tralist.number}">
                            <f:facet name="header">
                                <h:panelGroup>
                                    <h:outputText value="单据编号"/>
                                </h:panelGroup>
                            </f:facet>
                            <h:commandLink action="#{tripaccount.showFromCheckView(tralist)}">
                                <h:outputText value="#{tralist.number}"/>
                            </h:commandLink>
                        </rich:column>
                        <rich:column sortBy="#{tralist.numDate}">
                            <f:facet name="header">
                                <h:panelGroup>
                                    <h:outputText value="单据日期"/>
                                </h:panelGroup>
                            </f:facet>
                            <h:outputText value="#{tralist.numDate}">
                                <f:convertDateTime pattern="yyyy年MM月dd日" timeZone="GMT+8" locale="cn" />
                            </h:outputText>
                        </rich:column>
                        <rich:column sortBy="#{tralist.numberStatus}">
                            <f:facet name="header">
                                <h:panelGroup>
                                    <h:outputText value="单据状态"/>
                                </h:panelGroup>
                            </f:facet>
                            <h:outputText value="审核通过"  rendered="#{tralist.numberStatus == '2'}" style="color:blue"/>
                            <h:outputText value="退回修改"  rendered="#{tralist.numberStatus == '3'}" style="color:red"/>
                            <h:outputText value="等待审核"  rendered="#{tralist.numberStatus == '0'}" style="color:green"/>
                            <h:outputText value="确认支付"  rendered="#{tralist.numberStatus == '4'}" style="color:blue"/>
                            <h:outputText value="支付完毕"  rendered="#{tralist.numberStatus == '6'}" style="color:blue"/>
                        </rich:column>
                          <rich:column sortBy="#{tralist.dept.name}">
                            <f:facet name="header">
                                <h:panelGroup>
                                    <h:outputText value="部门"/>
                                </h:panelGroup>
                            </f:facet>
                            <h:outputText value="#{tralist.dept.name}"/>
                        </rich:column>

                         <rich:column sortBy="#{tralist.user.cpsn_name}">
                            <f:facet name="header">
                                <h:panelGroup>
                                    <h:outputText value="报销人"/>
                                </h:panelGroup>
                            </f:facet>
                            <h:outputText value="#{tralist.user.cpsn_name}"/>
                        </rich:column>
                          <rich:column sortBy="#{tralist.project.finName}">
                            <f:facet name="header">
                                <h:panelGroup>
                                    <h:outputText value="预算项目"/>
                                </h:panelGroup>
                            </f:facet>
                            <h:outputText value="#{tralist.project.finName}"/>
                        </rich:column>

                         <rich:column sortBy="#{tralist.payDept.name}">
                            <f:facet name="header">
                                <h:panelGroup>
                                    <h:outputText value="费用承担部门"/>
                                </h:panelGroup>
                            </f:facet>
                            <h:outputText value="#{tralist.payDept.name}"/>
                        </rich:column>

                        <rich:column sortBy="#{tralist.affair}">
                            <f:facet name="header">
                                <h:panelGroup>
                                    <h:outputText value="出差事由"/>
                                </h:panelGroup>
                            </f:facet>
                            <h:outputText value="#{tralist.affair}"/>
                        </rich:column>

                        <rich:column sortBy="#{tralist.total}">
                            <f:facet name="header">
                                <h:panelGroup>
                                    <h:outputText value="报销金额"/>
                                </h:panelGroup>
                            </f:facet>
                            <h:outputText value="#{tralist.total}">
                                <f:convertNumber type="number" pattern="#,##0.00"/>
                            </h:outputText>
                        </rich:column>

                        <rich:column sortBy="#{tralist.costClass}">
                            <f:facet name="header">
                                <h:panelGroup>
                                    <h:outputText value="支出类别"/>
                                </h:panelGroup>
                            </f:facet>
                            <h:outputText value="#{tralist.costClass}"/>
                        </rich:column>

                        <rich:column sortBy="#{tralist.budgetSource}">
                            <f:facet name="header">
                                <h:panelGroup>
                                    <h:outputText value="预算来源"/>
                                </h:panelGroup>
                            </f:facet>
                            <h:outputText value="#{tralist.budgetSource}"/>
                        </rich:column>

                        <rich:column sortBy="#{tralist.costitem.name}">
                            <f:facet name="header">
                                <h:panelGroup>
                                    <h:outputText value="经济分类:"/>
                                </h:panelGroup>
                            </f:facet>
                            <h:outputText value="#{tralist.costitem.name}"/>
                        </rich:column>
                        <rich:column sortBy="#{tralist.costTypes.name}">
                            <f:facet name="header">
                                <h:panelGroup>
                                    <h:outputText value="支出渠道:"/>
                                </h:panelGroup>
                            </f:facet>
                            <h:outputText value="#{tralist.costTypes.name}"/>
                        </rich:column>

                        <rich:column sortBy="#{tralist.paycode}">
                            <f:facet name="header">
                                <h:panelGroup>
                                    <h:outputText value="支付令"/>
                                </h:panelGroup>
                            </f:facet>
                            <h:outputText value="#{tralist.paycode}" style="width:350px" />
                        </rich:column>

                        <rich:column sortBy="#{tralist.checkaccount}">
                            <f:facet name="header">
                                <h:panelGroup>
                                    <h:outputText value="核定金额"/>
                                </h:panelGroup>
                            </f:facet>
                            <h:outputText value="#{tralist.checkaccount}">
                                <f:convertNumber type="number" pattern="#,##0.00"/>
                            </h:outputText>
                        </rich:column>

                        <rich:column sortBy="#{tralist.auditDate}">
                            <f:facet name="header">
                                <h:panelGroup>
                                    <h:outputText value="审核日期"/>
                                </h:panelGroup>
                            </f:facet>
                            <h:outputText value="#{tralist.auditDate}">
                                <f:convertDateTime pattern="yyyy年MM月dd日" timeZone="GMT+8" locale="cn" />
                            </h:outputText>
                        </rich:column>

                        <rich:column sortBy="#{tralist.auditor}">
                            <f:facet name="header">
                                <h:panelGroup>
                                    <h:outputText value="审核人"/>
                                </h:panelGroup>
                            </f:facet>
                            <h:outputText value="#{tralist.auditor}"/>
                        </rich:column>

                        <rich:column sortBy="#{tralist.payaccount}">
                            <f:facet name="header">
                                <h:panelGroup>
                                    <h:outputText value="支付金额"/>
                                </h:panelGroup>
                            </f:facet>
                            <h:outputText value="#{tralist.payaccount}">
                                <f:convertNumber type="number" pattern="#,##0.00"/>
                            </h:outputText>
                        </rich:column>

                        <rich:column sortBy="#{tralist.payDate}">
                            <f:facet name="header">
                                <h:panelGroup>
                                    <h:outputText value="支付日期"/>
                                </h:panelGroup>
                            </f:facet>
                            <h:outputText value="#{tralist.payDate}">
                                <f:convertDateTime pattern="yyyy年MM月dd日" timeZone="GMT+8" locale="cn" />
                            </h:outputText>
                        </rich:column>

                        <rich:column sortBy="#{tralist.payer}">
                            <f:facet name="header">
                                <h:panelGroup>
                                    <h:outputText value="出纳"/>
                                </h:panelGroup>
                            </f:facet>
                            <h:outputText value="#{tralist.payer}"/>
                        </rich:column>


                        <rich:column>
                            <f:facet name="header">
                                <h:panelGroup>
                                    <h:outputText value="备注"/>
                                </h:panelGroup>
                            </f:facet>
                            <h:outputText value="#{tralist.memo}"/>
                        </rich:column>

                        <f:facet name="footer">
                            <rich:dataScroller id="ds"></rich:dataScroller>
                        </f:facet>
                    </rich:dataTable>
                </div>
                </rich:collapsiblePanel>
                <rich:collapsiblePanel  switchType="client" header="出国差旅费审核" expanded="false" >
                 <div style="width:100%;overflow:auto">
                     <rich:dataTable value="#{abroadGroupCheckBean.abroadCheckViewModel}" var="tralist" rows="5"
                                    style=" width: 1500px;" id="abroadlist"
                                    rowClasses="list-row-odd,list-row-even" headerClass="table-header">
                        <rich:column sortBy="#{tralist.number}">
                            <f:facet name="header">
                                <h:panelGroup>
                                    <h:outputText value="单据编号"/>
                                </h:panelGroup>
                            </f:facet>
                            <h:commandLink action="#{abroadGroupCheckBean.showFromCheckView(tralist)}">
                                <h:outputText value="#{tralist.number}"/>
                            </h:commandLink>
                        </rich:column>
                        <rich:column sortBy="#{tralist.numDate}">
                            <f:facet name="header">
                                <h:panelGroup>
                                    <h:outputText value="单据日期"/>
                                </h:panelGroup>
                            </f:facet>
                            <h:outputText value="#{tralist.numDate}">
                                <f:convertDateTime pattern="yyyy年MM月dd日" timeZone="GMT+8" locale="cn" />
                            </h:outputText>
                        </rich:column>
                        <rich:column sortBy="#{tralist.numberStatus}">
                            <f:facet name="header">
                                <h:panelGroup>
                                    <h:outputText value="单据状态"/>
                                </h:panelGroup>
                            </f:facet>
                            <h:outputText value="审核通过"  rendered="#{tralist.numberStatus == '2'}" style="color:blue"/>
                            <h:outputText value="退回修改"  rendered="#{tralist.numberStatus == '3'}" style="color:red"/>
                            <h:outputText value="等待审核"  rendered="#{tralist.numberStatus == '0'}" style="color:green"/>
                            <h:outputText value="支付成功"  rendered="#{tralist.numberStatus == '4'}" style="color:blue"/>
                            <h:outputText value="支付完毕"  rendered="#{tralist.numberStatus == '6'}" style="color:blue"/>
                        </rich:column>
                          <rich:column sortBy="#{tralist.dept.name}">
                            <f:facet name="header">
                                <h:panelGroup>
                                    <h:outputText value="部门"/>
                                </h:panelGroup>
                            </f:facet>
                            <h:outputText value="#{tralist.dept.name}"/>
                        </rich:column>
                        <rich:column sortBy="#{tralist.user.cpsn_name}">
                            <f:facet name="header">
                                <h:panelGroup>
                                    <h:outputText value="报销人"/>
                                </h:panelGroup>
                            </f:facet>
                            <h:outputText value="#{tralist.user.cpsn_name}"/>
                        </rich:column>
                        <rich:column sortBy="#{tralist.project.finName}">
                            <f:facet name="header">
                                <h:panelGroup>
                                    <h:outputText value="预算项目"/>
                                </h:panelGroup>
                            </f:facet>
                            <h:outputText value="#{tralist.project.finName}"/>
                        </rich:column>

                        <rich:column sortBy="#{tralist.affair}">
                            <f:facet name="header">
                                <h:panelGroup>
                                    <h:outputText value="出差事由"/>
                                </h:panelGroup>
                            </f:facet>
                            <h:outputText value="#{tralist.affair}"/>
                        </rich:column>

                        <rich:column sortBy="#{tralist.total}">
                            <f:facet name="header">
                                <h:panelGroup>
                                    <h:outputText value="报销金额"/>
                                </h:panelGroup>
                            </f:facet>
                            <h:outputText value="#{tralist.total}">
                                <f:convertNumber type="number" pattern="#,##0.00"/>
                            </h:outputText>
                        </rich:column>

                        <rich:column sortBy="#{tralist.costClass}">
                            <f:facet name="header">
                                <h:panelGroup>
                                    <h:outputText value="支出类别"/>
                                </h:panelGroup>
                            </f:facet>
                            <h:outputText value="#{tralist.costClass}"/>
                        </rich:column>

                        <rich:column sortBy="#{tralist.budgetSource}">
                            <f:facet name="header">
                                <h:panelGroup>
                                    <h:outputText value="预算来源"/>
                                </h:panelGroup>
                            </f:facet>
                            <h:outputText value="#{tralist.budgetSource}"/>
                        </rich:column>

                        <rich:column sortBy="#{tralist.costitem.name}">
                            <f:facet name="header">
                                <h:panelGroup>
                                    <h:outputText value="经济分类:"/>
                                </h:panelGroup>
                            </f:facet>
                            <h:outputText value="#{tralist.costitem.name}"/>
                        </rich:column>
                        <rich:column sortBy="#{tralist.costTypes.name}">
                            <f:facet name="header">
                                <h:panelGroup>
                                    <h:outputText value="支出渠道:"/>
                                </h:panelGroup>
                            </f:facet>
                            <h:outputText value="#{tralist.costTypes.name}"/>
                        </rich:column>

                        <rich:column sortBy="#{tralist.paycode}">
                            <f:facet name="header">
                                <h:panelGroup>
                                    <h:outputText value="支付令"/>
                                </h:panelGroup>
                            </f:facet>
                            <h:outputText value="#{tralist.paycode}" style="width:350px" />
                        </rich:column>

                        <rich:column sortBy="#{tralist.checkaccount}">
                            <f:facet name="header">
                                <h:panelGroup>
                                    <h:outputText value="核定金额"/>
                                </h:panelGroup>
                            </f:facet>
                            <h:outputText value="#{tralist.checkaccount}">
                                <f:convertNumber type="number" pattern="#,##0.00"/>
                            </h:outputText>
                        </rich:column>

                        <rich:column sortBy="#{tralist.auditDate}">
                            <f:facet name="header">
                                <h:panelGroup>
                                    <h:outputText value="审核日期"/>
                                </h:panelGroup>
                            </f:facet>
                            <h:outputText value="#{tralist.auditDate}">
                                <f:convertDateTime pattern="yyyy年MM月dd日" timeZone="GMT+8" locale="cn" />
                            </h:outputText>
                        </rich:column>

                        <rich:column sortBy="#{tralist.auditor}">
                            <f:facet name="header">
                                <h:panelGroup>
                                    <h:outputText value="审核人"/>
                                </h:panelGroup>
                            </f:facet>
                            <h:outputText value="#{tralist.auditor}"/>
                        </rich:column>

                        <rich:column sortBy="#{tralist.payaccount}">
                            <f:facet name="header">
                                <h:panelGroup>
                                    <h:outputText value="支付金额"/>
                                </h:panelGroup>
                            </f:facet>
                            <h:outputText value="#{tralist.payaccount}">
                                <f:convertNumber type="number" pattern="#,##0.00"/>
                            </h:outputText>
                        </rich:column>

                        <rich:column sortBy="#{tralist.payDate}">
                            <f:facet name="header">
                                <h:panelGroup>
                                    <h:outputText value="支付日期"/>
                                </h:panelGroup>
                            </f:facet>
                            <h:outputText value="#{tralist.payDate}">
                                <f:convertDateTime pattern="yyyy年MM月dd日" timeZone="GMT+8" locale="cn" />
                            </h:outputText>
                        </rich:column>

                        <rich:column sortBy="#{tralist.payer}">
                            <f:facet name="header">
                                <h:panelGroup>
                                    <h:outputText value="出纳"/>
                                </h:panelGroup>
                            </f:facet>
                            <h:outputText value="#{tralist.payer}"/>
                        </rich:column>

                        <f:facet name="footer">
                            <rich:dataScroller id="ds"></rich:dataScroller>
                        </f:facet>
                    </rich:dataTable>
                </div>
                </rich:collapsiblePanel>
                <rich:collapsiblePanel  switchType="client" header="付款申请单审核" expanded="false" >
                       <div style="width:100%;overflow:auto">
                    <rich:dataTable id="appList" value="#{payAppCheck.billCheckViewModel}" var="app" rows="5"
                                    rowClasses="list-row-odd,list-row-even" style=" width: 1500px;"
                                    headerClass="table-header" >
                        <rich:column sortBy="#{app.number}">
                            <f:facet name="header">
                                <h:panelGroup>
                                    <h:outputText value="单据编号"/>
                                </h:panelGroup>
                            </f:facet>
                            <h:commandLink action="#{payAppCheck.showFromCheckView(app)}" >
                                <h:outputText value="#{app.number}"/>
                            </h:commandLink>
                        </rich:column>
                         <rich:column sortBy="#{app.numDate}">
                            <f:facet name="header">
                                <h:panelGroup>
                                    <h:outputText value="单据日期"/>
                                </h:panelGroup>
                            </f:facet>
                            <h:outputText value="#{app.numDate}">
                                <f:convertDateTime pattern="yyyy年MM月dd日" timeZone="GMT+8" locale="cn" />
                            </h:outputText>
                        </rich:column>
                        <rich:column sortBy="#{app.numberStatus}">
                            <f:facet name="header">
                                <h:panelGroup>
                                    <h:outputText value="单据状态"/>
                                </h:panelGroup>
                            </f:facet>
                            <h:outputText value="等待审核"  rendered="#{app.numberStatus == '0'}" style="color:green"/>
                            <h:outputText value="审核通过"  rendered="#{app.numberStatus == '2'}" style="color:blue"/>
                            <h:outputText value="退回修改"  rendered="#{app.numberStatus == '3'}" style="color:red"/>
                            <h:outputText value="确认支付"  rendered="#{app.numberStatus == '4'}" style="color:blue"/>
                            <h:outputText value="支付完毕"  rendered="#{app.numberStatus == '6'}" style="color:blue"/>
                        </rich:column>
                       <rich:column sortBy="#{app.dept.name}">
                            <f:facet name="header">
                                <h:panelGroup>
                                    <h:outputText value="部门"/>
                                </h:panelGroup>
                            </f:facet>
                            <h:outputText value="#{app.dept.name}"/>
                        </rich:column>
                         <rich:column sortBy="#{app.user.cpsn_name}">
                            <f:facet name="header">
                                <h:panelGroup>
                                    <h:outputText value="经手人员"/>
                                </h:panelGroup>
                            </f:facet>
                            <h:outputText value="#{app.user.cpsn_name}"/>
                        </rich:column>
                         <rich:column sortBy="#{app.project.finName}">
                            <f:facet name="header">
                                <h:panelGroup>
                                    <h:outputText value="预算项目"/>
                                </h:panelGroup>
                            </f:facet>
                            <h:outputText value="#{app.project.finName}"/>
                        </rich:column>

                        <rich:column sortBy="#{app.affair}">
                            <f:facet name="header">
                                <h:panelGroup>
                                    <h:outputText value="报销内容"/>
                                </h:panelGroup>
                            </f:facet>
                            <h:outputText value="#{app.affair}"/>
                        </rich:column>

                        <rich:column sortBy="#{app.total}">
                            <f:facet name="header">
                                <h:panelGroup>
                                    <h:outputText value="报销金额"/>
                                </h:panelGroup>
                            </f:facet>
                            <h:outputText value="#{app.total}">
                                <f:convertNumber type="number" pattern="#,##0.00"/>
                            </h:outputText>
                        </rich:column>

                        <rich:column sortBy="#{app.costClass}">
                            <f:facet name="header">
                                <h:panelGroup>
                                    <h:outputText value="支出类别"/>
                                </h:panelGroup>
                            </f:facet>
                            <h:outputText value="#{app.costClass}"/>
                        </rich:column>

                        <rich:column sortBy="#{app.budgetSource}">
                            <f:facet name="header">
                                <h:panelGroup>
                                    <h:outputText value="预算来源"/>
                                </h:panelGroup>
                            </f:facet>
                            <h:outputText value="#{app.budgetSource}"/>
                        </rich:column>

                        <rich:column sortBy="#{app.costitem.name}">
                            <f:facet name="header">
                                <h:panelGroup>
                                    <h:outputText value="经济分类:"/>
                                </h:panelGroup>
                            </f:facet>
                            <h:outputText value="#{app.costitem.name}"/>
                        </rich:column>

                        <rich:column sortBy="#{app.costTypes.name}">
                            <f:facet name="header">
                                <h:panelGroup>
                                    <h:outputText value="支出渠道:"/>
                                </h:panelGroup>
                            </f:facet>
                            <h:outputText value="#{app.costTypes.name}"/>
                        </rich:column>

                        <rich:column sortBy="#{app.paycode}">
                            <f:facet name="header">
                                <h:panelGroup>
                                    <h:outputText value="支付令"/>
                                </h:panelGroup>
                            </f:facet>
                            <h:outputText value="#{app.paycode}" style="width:350px" />
                        </rich:column>

                        <rich:column sortBy="#{app.checkaccount}">
                            <f:facet name="header">
                                <h:panelGroup>
                                    <h:outputText value="核定金额"/>
                                </h:panelGroup>
                            </f:facet>
                            <h:outputText value="#{app.checkaccount}">
                                <f:convertNumber type="number" pattern="#,##0.00"/>
                            </h:outputText>
                        </rich:column>

                        <rich:column sortBy="#{app.repayment}">
                            <f:facet name="header">
                                <h:panelGroup>
                                    <h:outputText value="还款金额"/>
                                </h:panelGroup>
                            </f:facet>
                            <h:outputText value="#{app.repayment}">
                                <f:convertNumber type="number" pattern="#,##0.00"/>
                            </h:outputText>
                        </rich:column>

                        <rich:column sortBy="#{app.remain}">
                            <f:facet name="header">
                                <h:panelGroup>
                                    <h:outputText value="待支付金额"/>
                                </h:panelGroup>
                            </f:facet>
                            <h:outputText value="#{app.remain}">
                                <f:convertNumber type="number" pattern="#,##0.00"/>
                            </h:outputText>
                        </rich:column>

                        <rich:column sortBy="#{app.auditDate}">
                            <f:facet name="header">
                                <h:panelGroup>
                                    <h:outputText value="审核日期"/>
                                </h:panelGroup>
                            </f:facet>
                            <h:outputText value="#{app.auditDate}">
                                <f:convertDateTime pattern="yyyy年MM月dd日" timeZone="GMT+8" locale="cn" />
                            </h:outputText>
                        </rich:column>

                        <rich:column sortBy="#{app.auditor}">
                            <f:facet name="header">
                                <h:panelGroup>
                                    <h:outputText value="审核人"/>
                                </h:panelGroup>
                            </f:facet>
                            <h:outputText value="#{app.auditor}"/>
                        </rich:column>

                        <rich:column sortBy="#{app.payaccount}">
                            <f:facet name="header">
                                <h:panelGroup>
                                    <h:outputText value="支付金额"/>
                                </h:panelGroup>
                            </f:facet>
                            <h:outputText value="#{app.payaccount}">
                                <f:convertNumber type="number" pattern="#,##0.00"/>
                            </h:outputText>
                        </rich:column>

                        <rich:column sortBy="#{app.payDate}">
                            <f:facet name="header">
                                <h:panelGroup>
                                    <h:outputText value="支付日期"/>
                                </h:panelGroup>
                            </f:facet>
                            <h:outputText value="#{app.payDate}">
                                <f:convertDateTime pattern="yyyy年MM月dd日" timeZone="GMT+8" locale="cn" />
                            </h:outputText>
                        </rich:column>

                        <rich:column sortBy="#{app.payer}">
                            <f:facet name="header">
                                <h:panelGroup>
                                    <h:outputText value="出纳"/>
                                </h:panelGroup>
                            </f:facet>
                            <h:outputText value="#{app.payer}"/>
                        </rich:column>

                        <f:facet name="footer">
                            <rich:dataScroller id="ds"></rich:dataScroller>
                        </f:facet>
                    </rich:dataTable>
                </div>
                </rich:collapsiblePanel>
          <rich:collapsiblePanel  switchType="client" header="支出证明单审核" expanded="false" >
             <div style="width:100%;overflow: auto;">
                    <rich:dataTable id="proofList" value="#{proofCheck.billCheckViewModel}" var="pf" rows="5"
                                    rowClasses="list-row-odd,list-row-even" style=" width: 1500px;"
                                    headerClass="table-header">

                        <rich:column sortBy = "#{pf.number}">
                            <f:facet name="header">
                                <h:panelGroup>
                                    <h:outputText value="单据编号"/>
                                </h:panelGroup>
                            </f:facet>
                            <h:commandLink action="#{proofCheck.showFromCheckView(pf)}" >
                                <h:outputText value="#{pf.number}"/>
                            </h:commandLink>
                        </rich:column>
                         <rich:column sortBy="#{pf.numDate}">
                            <f:facet name="header">
                                <h:panelGroup>
                                    <h:outputText value="单据日期"/>
                                </h:panelGroup>
                            </f:facet>
                            <h:outputText value="#{pf.numDate}">
                                <f:convertDateTime pattern="yyyy年MM月dd日" timeZone="GMT+8" locale="cn" />
                            </h:outputText>
                        </rich:column>

                        <rich:column sortBy="#{pf.numberStatus}">
                            <f:facet name="header">
                                <h:panelGroup>
                                    <h:outputText value="单据状态"/>
                                </h:panelGroup>
                            </f:facet>
                            <h:outputText value="等待审核"  rendered="#{pf.numberStatus == '0'}" style="color:green"/>
                            <h:outputText value="审核通过"  rendered="#{pf.numberStatus == '2'}" style="color:blue"/>
                            <h:outputText value="退回修改"  rendered="#{pf.numberStatus == '3'}" style="color:red"/>
                            <h:outputText value="确认支付"  rendered="#{pf.numberStatus == '4'}" style="color:blue"/>
                            <h:outputText value="支付完毕"  rendered="#{pf.numberStatus == '6'}" style="color:blue"/>
                        </rich:column>
                           <rich:column sortBy="#{pf.dept.name}">
                            <f:facet name="header">
                                <h:panelGroup>
                                    <h:outputText value="部门"/>
                                </h:panelGroup>
                            </f:facet>
                            <h:outputText value="#{pf.dept.name}"/>
                        </rich:column>
                       <rich:column sortBy="#{pf.user.cpsn_name}">
                            <f:facet name="header">
                                <h:panelGroup>
                                    <h:outputText value="经手人员"/>
                                </h:panelGroup>
                            </f:facet>
                            <h:outputText value="#{pf.user.cpsn_name}"/>
                        </rich:column>

                          <rich:column sortBy="#{pf.project.finName}">
                            <f:facet name="header">
                                <h:panelGroup>
                                    <h:outputText value="预算项目"/>
                                </h:panelGroup>
                            </f:facet>
                            <h:outputText value="#{pf.project.finName}"/>
                        </rich:column>
                        <rich:column sortBy="#{pf.affair}">
                            <f:facet name="header">
                                <h:panelGroup>
                                    <h:outputText value="报销内容"/>
                                </h:panelGroup>
                            </f:facet>
                            <h:outputText value="#{pf.affair}"/>
                        </rich:column>

                        <rich:column sortBy="#{pf.total}">
                            <f:facet name="header">
                                <h:panelGroup>
                                    <h:outputText value="报销金额"/>
                                </h:panelGroup>
                            </f:facet>
                            <h:outputText value="#{pf.total}">
                                <f:convertNumber type="number" pattern="#,##0.00"/>
                            </h:outputText>
                        </rich:column>

                        <rich:column sortBy="#{pf.costClass}">
                            <f:facet name="header">
                                <h:panelGroup>
                                    <h:outputText value="支出类别"/>
                                </h:panelGroup>
                            </f:facet>
                            <h:outputText value="#{pf.costClass}"/>
                        </rich:column>

                        <rich:column sortBy="#{pf.budgetSource}">
                            <f:facet name="header">
                                <h:panelGroup>
                                    <h:outputText value="预算来源"/>
                                </h:panelGroup>
                            </f:facet>
                            <h:outputText value="#{pf.budgetSource}"/>
                        </rich:column>

                        <rich:column sortBy="#{pf.costitem.name}">
                            <f:facet name="header">
                                <h:panelGroup>
                                    <h:outputText value="经济分类:"/>
                                </h:panelGroup>
                            </f:facet>
                            <h:outputText value="#{pf.costitem.name}"/>
                        </rich:column>

                        <rich:column sortBy="#{pf.costTypes.name}">
                            <f:facet name="header">
                                <h:panelGroup>
                                    <h:outputText value="支出渠道:"/>
                                </h:panelGroup>
                            </f:facet>
                            <h:outputText value="#{pf.costTypes.name}"/>
                        </rich:column>

                        <rich:column sortBy="#{pf.paycode}">
                            <f:facet name="header">
                                <h:panelGroup>
                                    <h:outputText value="支付令"/>
                                </h:panelGroup>
                            </f:facet>
                            <h:outputText value="#{pf.paycode}" style="width:350px" />
                        </rich:column>

                        <rich:column sortBy="#{pf.checkaccount}">
                            <f:facet name="header">
                                <h:panelGroup>
                                    <h:outputText value="核定金额"/>
                                </h:panelGroup>
                            </f:facet>
                            <h:outputText value="#{pf.checkaccount}">
                                <f:convertNumber type="number" pattern="#,##0.00"/>
                            </h:outputText>
                        </rich:column>

                        <rich:column sortBy="#{pf.repayment}">
                            <f:facet name="header">
                                <h:panelGroup>
                                    <h:outputText value="还款金额"/>
                                </h:panelGroup>
                            </f:facet>
                            <h:outputText value="#{pf.repayment}">
                                <f:convertNumber type="number" pattern="#,##0.00"/>
                            </h:outputText>
                        </rich:column>

                        <rich:column sortBy="#{pf.remain}">
                            <f:facet name="header">
                                <h:panelGroup>
                                    <h:outputText value="待支付金额"/>
                                </h:panelGroup>
                            </f:facet>
                            <h:outputText value="#{pf.remain}">
                                <f:convertNumber type="number" pattern="#,##0.00"/>
                            </h:outputText>
                        </rich:column>

                        <rich:column sortBy="#{pf.auditDate}">
                            <f:facet name="header">
                                <h:panelGroup>
                                    <h:outputText value="审核日期"/>
                                </h:panelGroup>
                            </f:facet>
                            <h:outputText value="#{pf.auditDate}">
                                <f:convertDateTime pattern="yyyy年MM月dd日" timeZone="GMT+8" locale="cn" />
                            </h:outputText>
                        </rich:column>

                        <rich:column sortBy="#{pf.auditor}">
                            <f:facet name="header">
                                <h:panelGroup>
                                    <h:outputText value="审核人"/>
                                </h:panelGroup>
                            </f:facet>
                            <h:outputText value="#{pf.auditor}"/>
                        </rich:column>

                        <rich:column sortBy="#{pf.payaccount}">
                            <f:facet name="header">
                                <h:panelGroup>
                                    <h:outputText value="支付金额"/>
                                </h:panelGroup>
                            </f:facet>
                            <h:outputText value="#{pf.payaccount}">
                                <f:convertNumber type="number" pattern="#,##0.00"/>
                            </h:outputText>
                        </rich:column>

                        <rich:column sortBy="#{pf.payDate}">
                            <f:facet name="header">
                                <h:panelGroup>
                                    <h:outputText value="支付日期"/>
                                </h:panelGroup>
                            </f:facet>
                            <h:outputText value="#{pf.payDate}">
                                <f:convertDateTime pattern="yyyy年MM月dd日" timeZone="GMT+8" locale="cn" />
                            </h:outputText>
                        </rich:column>

                        <rich:column sortBy="#{pf.payer}">
                            <f:facet name="header">
                                <h:panelGroup>
                                    <h:outputText value="出纳"/>
                                </h:panelGroup>
                            </f:facet>
                            <h:outputText value="#{pf.payer}"/>
                        </rich:column>
                    </rich:dataTable>
                </div>
                </rich:collapsiblePanel>
            </rich:panel>
        </h:form>
    </h:body>
</html>

